From eb96e5c861e6454527487ce27ebaf24c457c9a38 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 28 Mar 2005 04:16:10 +0000 Subject: [PATCH] Use the correct update regions for compressed bmps. (#150664, Owen Taylor, 2005-03-27 Matthias Clasen * io-bmp.c (DoCompressed): Use the correct update regions for compressed bmps. (#150664, Owen Taylor, test images provided by David Costanzo) --- gdk-pixbuf/ChangeLog | 6 ++++++ gdk-pixbuf/io-bmp.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index dea1fc5e83..6ad4c7b9c8 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,9 @@ +2005-03-27 Matthias Clasen + + * io-bmp.c (DoCompressed): Use the correct update regions for + compressed bmps. (#150664, Owen Taylor, test images provided + by David Costanzo) + Sun Mar 27 19:59:52 2005 Manish Singh * io-bmp.c (grow_buffer): reject 0-sized buffers as corrupt header diff --git a/gdk-pixbuf/io-bmp.c b/gdk-pixbuf/io-bmp.c index 5b70ea047d..f33f9f5e5d 100644 --- a/gdk-pixbuf/io-bmp.c +++ b/gdk-pixbuf/io-bmp.c @@ -1044,7 +1044,7 @@ DoCompressed(struct bmp_progressive_state *context, GError **error) gint new_y = MIN (context->compr.y, context->Header.height); (*context->updated_func) (context->pixbuf, 0, - y, + context->Header.height - new_y, context->Header.width, new_y - y, context->user_data); -- 2.30.2